package com.ismarkendenis.primegenerator;

import java.util.ArrayList;

public class Main 
{
	public static void main(String[] args)
	{
		int prime           = 7;
		Generator generator = new Generator();
		
		ArrayList<Integer> generatorsOfPrime = generator.generatorsOfPrime(prime);
		ArrayList<Boolean> verified          = generator.verifyGenerators(prime, generatorsOfPrime);
		
		System.out.println("For prime " + prime + " the following generators where found.");
		
		for (int i = 0; i < generatorsOfPrime.size(); i++)
		{
			String sentence = "Generator " + generatorsOfPrime.get(i) + " was found";
			if (verified.get(i))
			{
				sentence += " and was verified by the open OpenSSl algorithm.";
			}
			else if (!verified.get(i))
			{
				sentence += " but according to the open SSl algorithm, it is not a generator.";
			}
			System.out.println(sentence);
		}
	}
}
